import request from '@/utils/request'

export function fetchEmployeeList(data) {
  return request({
    url: '/cloud-system/getEmployeeList',
    method: 'post',
    data
  })
}

export function fetchEmployeeOne(data) {
  return request({
    url: '/cloud-system/getOneEmployeeDetail',
    method: 'post',
    data
  })
}

export function createEmployee(data) {
  return request({
    url: '/cloud-system/createOneEmployee',
    method: 'post',
    data
  })
}

export function updateEmployee(data) {
  return request({
    url: '/cloud-system/updateOneEmployee',
    method: 'post',
    data
  })
}

export function deleteEmployee(data) {
  return request({
    url: '/cloud-system/deleteOneEmployee',
    method: 'post',
    data
  })
}
export function batchDeleteEmployee(data) {
  return request({
    url: '/cloud-system/batchDeleteEmployee',
    method: 'post',
    data
  })
}

export function lockEmployee(data) {
  return request({
    url: '/cloud-system/lockOneEmployee',
    method: 'post',
    data
  })
}

export function unlockEmployee(data) {
  return request({
    url: '/cloud-system/unlockOneEmployee',
    method: 'post',
    data
  })
}

export function batchLockEmployee(data) {
  return request({
    url: '/cloud-system/batchLockEmployee',
    method: 'post',
    data
  })
}

export function batchUnLockEmployee(data) {
  return request({
    url: '/cloud-system/batchUnLockEmployee',
    method: 'post',
    data
  })
}
